package com.ae.service.impl;

import com.ae.mapper.CourseMapper;
import com.ae.pojo.Course;
import com.ae.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author bug-termination
 * @date 2020-10-19 15:56
 */
@Service
public class CourseServiceImpl implements CourseService {
    @Autowired
    private CourseMapper courseMapper;

    @Override
    public List<Course> selectAll() {
        return courseMapper.selectAll();
    }

    @Override
    public List<Course> findCourseBySubjectId(Integer sId) {
        return courseMapper.findCourseBySubjectId(sId);
    }

    @Override
    public Course selectByPrimaryKey(Integer id) {
        return courseMapper.selectByPrimaryKey(id);
    }


}
